// 以下是业务服务器API地址
// 本机开发时使用 必须填写IP否则支付错，获取不到IP
// var WxApiRoot = 'http://localhost:8082/';
// var WxsApiRoot = 'http://localhost:8085/';
// 局域网测试使用
var WxApiRoot = 'http://192.168.2.178:8082/';
var WxsApiRoot = 'http://192.168.2.178:8085/';
// 云平台部署时使用
//  var WxApiRoot = 'http://mall.aimanrenjian.net:8082';
// 云平台上线时使用
// var WxApiRoot = 'https://mall.aimanrenjian.net/';
// var WxsApiRoot = 'https://mall.aimanrenjian.net/';

module.exports = {
  UserSignData: WxApiRoot + 'wx/sign/monthSign',//用户的签到记录
  UserSignIn: WxApiRoot + 'wx/sign/signToday', //用户签到
  LotteryAward: WxApiRoot + 'wx/lottery/getLottery', //奖池
  LotteryInfo: WxApiRoot + 'wx/lottery/award', //抽奖
  HotGoods: WxApiRoot + 'wx/goods/getHot', //首页热点商品
  
  IndexUrl: WxApiRoot + 'wx/home/index', //首页数据接口
  CatalogList: WxApiRoot + 'wx/catalog/index', //分类目录全部分类数据接口
  CatalogCurrent: WxApiRoot + 'wx/catalog/current', //分类目录当前分类数据接口

  AuthLoginByWeixin: WxApiRoot + 'wx/auth/login_by_weixin', //微信登录
  AuthLoginByAccount: WxApiRoot + 'wx/auth/login', //账号登录
  AuthRegister: WxApiRoot + 'wx/auth/register', //账号注册
  AuthReset: WxApiRoot + 'wx/auth/reset', //账号密码重置
  BindMobile: WxApiRoot + 'wx/auth/bindMobile', //绑定手机号
  BindNewMobile: WxApiRoot + 'wx/auth/transfer', //重新绑定手机号码
  BindRecord: WxApiRoot + 'wx/auth/mobileList', //手机绑定记录
  AuthRegisterCaptcha: WxApiRoot + 'wx/auth/regCaptcha', //验证码

  GoodsCount: WxApiRoot + 'wx/goods/count', //统计商品总数
  GoodsList: WxApiRoot + 'wx/goods/list', //获得商品列表
  GoodsCategory: WxApiRoot + 'wx/goods/category', //获得分类数据
  GoodsDetail: WxApiRoot + 'wx/goods/detail', //获得商品的详情
  GoodsNew: WxApiRoot + 'wx/goods/new', //新品
  GoodsHot: WxApiRoot + 'wx/goods/hot', //热门
  UserMemberType: WxApiRoot + 'wx/goods/getMemberType',//查询是否会员
  GoodsRelated: WxApiRoot + 'wx/goods/related', //商品详情页的关联商品（大家都在看）
  GoodsLists: WxApiRoot + 'wx/goods/lists', //获得商品列表
  goodsByAd: WxApiRoot + 'wx/goods/getGoodsByAd', //通过广告列表id查找超值商品



  BrandList: WxApiRoot + 'wx/brand/list', //供货商列表
  NewBrandList: WxApiRoot + 'wx/brand/brandList', //品牌商列表
  BrandDetail: WxApiRoot + 'wx/brand/detail', //供货商详情
  NewBrandDetail: WxApiRoot + 'wx/brand/brandDetail', //品牌商详情

  CartList: WxApiRoot + 'wx/cart/index', //获取购物车的数据
  CartAdd: WxApiRoot + 'wx/cart/add', // 添加商品到购物车
  CartFastAdd: WxApiRoot + 'wx/cart/fastadd', // 立即购买商品
  CartUpdate: WxApiRoot + 'wx/cart/update', // 更新购物车的商品
  CartDelete: WxApiRoot + 'wx/cart/delete', // 删除购物车的商品
  CartChecked: WxApiRoot + 'wx/cart/checked', // 选择或取消选择商品
  CartGoodsCount: WxApiRoot + 'wx/cart/goodscount', // 获取购物车商品件数
  CartCheckout: WxApiRoot + 'wx/cart/checkout', // 下单前信息确认
  CartCheckFreight: WxApiRoot + 'wx/cart/checkfreight', // 计算运费
  CartCheck: WxApiRoot + 'wx/cart/check',
  CollectList: WxApiRoot + 'wx/collect/list', //收藏列表
  CollectAddOrDelete: WxApiRoot + 'wx/collect/addordelete', //添加或取消收藏

  CommentList: WxApiRoot + 'wx/comment/list', //评论列表
  CommentCount: WxApiRoot + 'wx/comment/count', //评论总数
  CommentPost: WxApiRoot + 'wx/comment/post', //发表评论

  TopicList: WxApiRoot + 'wx/topic/list', //专题列表
  TopicDetail: WxApiRoot + 'wx/topic/detail', //专题详情
  TopicRelated: WxApiRoot + 'wx/topic/related', //相关专题

  SearchIndex: WxApiRoot + 'wx/search/index', //搜索关键字
  SearchResult: WxApiRoot + 'wx/search/result', //搜索结果
  SearchHelper: WxApiRoot + 'wx/search/helper', //搜索帮助
  SearchClearHistory: WxApiRoot + 'wx/search/clearhistory', //搜索历史清楚

  AddressList: WxApiRoot + 'wx/address/list', //收货地址列表
  AddressDetail: WxApiRoot + 'wx/address/detail', //收货地址详情
  AddressSave: WxApiRoot + 'wx/address/save', //保存收货地址
  AddressDelete: WxApiRoot + 'wx/address/delete', //保存收货地址

  ExpressQuery: WxApiRoot + 'wx/express/query', //物流查询

  RegionList: WxApiRoot + 'wx/region/list', //获取区域列表

  OrderSubmit: WxApiRoot + 'wx/order/submit', // 提交订单
  OrderPrepay: WxApiRoot + 'wx/order/prepay', // 订单的预支付会话
  OrderList: WxApiRoot + 'wx/order/list', //订单列表
  OrderDetail: WxApiRoot + 'wx/order/detail', //订单详情
  OrderCancel: WxApiRoot + 'wx/order/cancel', //取消订单
  OrderRefund: WxApiRoot + 'wx/order/refund', //退款取消订单
  OrderDelete: WxApiRoot + 'wx/order/delete', //删除订单
  OrderConfirm: WxApiRoot + 'wx/order/confirm', //确认收货
  OrderComment: WxApiRoot + 'wx/order/comment', // 代评价商品信息

  FootprintList: WxApiRoot + 'wx/footprint/list', //足迹列表
  FootprintDelete: WxApiRoot + 'wx/footprint/delete', //删除足迹

  StorageUpload: WxApiRoot + 'wx/storage/upload', //图片上传,

  WalletList: WxApiRoot + 'wx/wallet/list', //积分和爱币的剩余数量
  WalletDetailList: WxApiRoot + 'wx/wallet/detailList', //积分和爱币明细列表
  WalletDetail: WxApiRoot + 'wx/wallet/detail', //明细列表的单个明细项
  WalletRegCaptcha: WxApiRoot + 'wx/wallet/regCaptcha', //修改支付密码验证码
  WalletUpdateSecret: WxApiRoot + 'wx/wallet/update', //修改支付密码
  WalletPayWallet: WxApiRoot + 'wx/wallet/payWallet', //充值钱包
  WalletPayWalletMember: WxApiRoot + 'wx/wallet/payWalletMember', //充值会员
  WalletCheckchargestatus: WxApiRoot + 'wx/wallet/checkchargestatus', //验证是否充值成功
  WalletExchangeIntegral: WxApiRoot + 'wx/wallet/exchangeintegral', //爱币兑换积分
  WalletPayNotify: WxApiRoot + 'wx/wallet/checkchargestatus', //支付成功查询支付信息，更新钱包

  //服务
  SearchMechanism: WxsApiRoot + 'wxs/search/searchMechanism', //搜索机构

  ServiceIndex: WxsApiRoot + 'wxs/service/index',//首页数据接口
  GetCoupon: WxsApiRoot + 'wxs/ticket/getTicket',//查询附近5公里的代金券e

  VoucherList: WxApiRoot + 'wx/voucher/list',//我的代金券
  VoucherCommentPost: WxApiRoot + 'wx/voucher/post', //代金券发表评论
  MyVoucherDetail: WxApiRoot + 'wx/voucher/detail', //个人中心代金券详情
  GetMechanism: WxsApiRoot + 'wxs/map/getMechanism',//查询附近5公里的机构

  VoucherDetail: WxsApiRoot + 'wxs/voucher/detail', //代金券详情
  BuyVoucher: WxsApiRoot + 'wxs/voucher/buy', //购买代金券
  GetCatalogDetailList: WxsApiRoot + 'wxs/catalogDetail/getCatalogDetail',//获取机构详情
  getVoucherCommentList: WxsApiRoot + 'wxs/catalogDetail/getVoucherCommentList', //获取机构所有评论

  GetGroup: WxApiRoot + 'wx/groupBuy/getGroup',  // 获取当前团购列表
  GetNextGroup: WxApiRoot +  'wx/groupBuy/getNextGroup', // 获取下一期团购列表
  GetBulkGood: WxApiRoot +  'wx/groupBuy/getGood', //根据商品id获取商品详情
  BulkGoodSubmit: WxApiRoot + 'wx/groupBuy/submit',     //团购商品用户下单
  FormidCreate: WxApiRoot +  'wx/formid/create'  //提交formId
};